package com.xmg.boot.demo.bootlesson1.user.entity.dm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: ma
 * @CreateTime: 2023-11-28
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@TableName(value="dmtable")
public class DmTable implements Serializable {
    @TableId(value="id",type= IdType.AUTO)
    private Long id;
    private String name;
    private int age;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date modifyDate;
}
